import java.util.Scanner;
public class Calculator{
    public static void main(String []args)
{
        float a,b,result;
        String symbol,symbol2;
        char symbol1,c;
        Scanner scan = new Scanner(System.in);
for(;;){
        System.out.println("Enter 2 numbers:");
        a = scan.nextFloat();
        b = scan.nextFloat();
        System.out.println("Enter operational symbol:");
        symbol = scan.next();
        symbol1 = symbol.charAt(0);
        result = calculator.Calculate(a,b,symbol1);
        System.out.printf("The resutl is %f \n",result);
        System.out.printf("Go on?/(Y / y/)\n");
        symbol2 = scan.next();
        c=symbol2.charAt(0);
        if(c=='Y'||c=='y')
{
        continue;
}
else
{
break;
}
}
}
}
